import cesiumSource from "node_modules/cesium/Source";
import webpack from "webpack";
import path from "path";
const resolve = (dir) => {
  return path.join(__dirname, dir);
}

export default {
  configureWebpack: {
    resolve: {
      alias: {
        "@": resolve("src"),
        cesium: path.resolve(__dirname, cesiumSource),
      }
    },
    plugins: [
      new webpack.ProvidePlugin({
        Cesium: ["cesium/Cesium"]
      })
    ]
  }
}